vm_event: support for guest-requested events
authorRazvan Cojocaru <rcojocaru@bitdefender.com>
Wed, 15 Jul 2015 14:08:59 +0000 (16:08 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 15 Jul 2015 14:08:59 +0000 (16:08 +0200)
commit6c15cf99c1852c2dadc53c3349556872f41ebc5f
treef2c4b31dec879e72da05a43f1bc48a096fd6349b
parentfe76bced18e0f8ec6c33b86565e5479f80778077
vm_event: support for guest-requested events

Added support for a new class of vm_events: VM_EVENT_REASON_REQUEST,
sent via HVMOP_request_vm_event. The guest can request that a
generic vm_event (containing only the vm_event-filled guest registers
as information) be sent to userspace by setting up the correct
registers and doing a VMCALL. For example, for a 32-bit guest, this
means: EAX = 34 (hvmop), EBX = 24 (HVMOP_guest_request_vm_event),
ECX = 0 (NULL required for the hypercall parameter, reserved).

Signed-off-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Acked-by: Tamas K Lengyel <tlengyel@novetta.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/include/xenctrl.h
tools/libxc/xc_monitor.c
xen/arch/x86/hvm/event.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/monitor.c
xen/include/asm-x86/domain.h
xen/include/asm-x86/hvm/event.h
xen/include/public/domctl.h
xen/include/public/hvm/hvm_op.h
xen/include/public/vm_event.h